package com.um.pasantiaum;

import android.content.Context;
import android.content.SharedPreferences;

import com.parse.Parse;

public class Application extends android.app.Application {

	private static SharedPreferences preferences;
	
	private String username, password;


	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Application() {
	}
	
	public static SharedPreferences getPreferences() {
		return preferences;
	}

	public static void setPreferences(SharedPreferences preferences) {
		Application.preferences = preferences;
	}

	@Override
	public void onCreate() {
		super.onCreate();

		// ParseObject.registerSubclass(AnywallPost.class);
		Parse.initialize(this, "5seQYruioBCmC64TpcQhaUKLVt1wlNfOw6OqE6gY",
				"gG6JWJLrhfTD1i480g2IneHgLUpskXdsFFDYJRBC");
		setPreferences(getSharedPreferences("com.um.pasantiaum",
				Context.MODE_PRIVATE));
	}

	
}
